<#--
/****************************************************
 * Description: 用户组的输入页面，包括添加和修改
 * Copyright:   Copyright (c) 2013
 * Company:     beiwaionline
 * @author      bfsu
 * @version     1.0
 * @see
	HISTORY
    *  2013-08-08 bfsu Create File
**************************************************/
-->
<#include "/templates/ace/ace-inc.ftl">
<@input url="${base}/components/security/privilege/save">
	 <input type="hidden" name="id" value="${group.id}"/>
    <@formgroup title='名称'><input type="text" name="title" value="${group.title}" check-type='required' maxlength="50"></@formgroup>
	<@formgroup title='描述'><textarea name="description" class='tinyeditor' rows="2" cols="40">${group.description}</textarea></@formgroup>
	<#if group.id?exists>
		<input type="hidden" name="roleIds" value="0">
    <#else>
    	<@formgroup title="角色">
		    <input type="hidden" name="roleIds" value="0">
	    	<@checkboxlist list=roles name='roleIds' listKey='title' listValue='id'>
	    	</@checkboxlist>
    	</@formgroup>
    </#if>
</@input>